package org.yxing.demo.test;

import android.app.Activity;
import android.os.Bundle;

public class ActionBarActivity extends Activity {
    
    final ActionBarHelper mActionBarHelper = new ActionBarHelper(this);
    
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mActionBarHelper.onCreate(savedInstanceState);
    }
    
    protected void onTitleChanged(CharSequence title, int color) {
        super.onTitleChanged(title, color);
        mActionBarHelper.onTitleChanged(title, color);
    }
    
    protected void onPostCreate (Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        mActionBarHelper.onPostCreate(savedInstanceState);
    }
    
    protected void onCreateActionbar(ActionBar actionBar) {
        //add action bar item
    }
    
    protected void onActionBarItemSelected(ActionBarItem item) {
        //something on click action bar item
    }
}
